package com.ellecity06.common.ktx

import android.app.Activity
import android.view.View
import androidx.fragment.app.Fragment
import com.gyf.immersionbar.ktx.statusBarHeight

/**
 * @author ellecity06
 * @time 2024/10/23 10:45
 * @des
 */

fun Activity.statusBar(v: View) {
    val layoutParams = v.layoutParams
    layoutParams.height = statusBarHeight
    v.layoutParams = layoutParams
}

fun Fragment.statusBar(v: View) {
    val layoutParams = v.layoutParams
    layoutParams.height = statusBarHeight
    v.layoutParams = layoutParams
}